import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/pethis',
    name: 'Pethis',
    meta: {
      title: '宠物医院',
      icon: 'mdi:paw',
      orderNo: 10,
    },
    children: [
      {
        path: 'portal',
        name: 'PethisOutpatientPortal',
        component: () => import('#/views/pethis/outpatient/portal/portal.vue'),
        meta: {
          title: '门诊首页',
          icon: 'mdi:home',
          hideMenu: false,
        },
      },
      {
        path: 'registration',
        name: 'PethisRegistration',
        component: () => import('#/views/pethis/registration/index.vue'),
        meta: {
          title: '挂号管理',
          icon: 'mdi:clipboard-text',
          hideMenu: false,
        },
      },
      {
        path: 'medical',
        name: 'PethisMedical',
        component: () => import('#/views/pethis/medical/index.vue'),
        meta: {
          title: '门诊住院',
          icon: 'mdi:medical-bag',
          hideMenu: false,
        },
      },
      {
        path: 'customer',
        name: 'PethisCustomer',
        component: () => import('#/views/pethis/customer/index.vue'),
        meta: {
          title: '顾客信息',
          icon: 'mdi:account-group',
          hideMenu: false,
        },
      },
      {
        path: 'inpatient',
        name: 'PethisInpatient',
        component: () => import('#/views/pethis/inpatient/index.vue'),
        meta: {
          title: '住院管理',
          icon: 'mdi:hospital-building',
          hideMenu: false,
        },
      },
      {
        path: 'grooming',
        name: 'PethisGrooming',
        component: () => import('#/views/pethis/grooming/index.vue'),
        meta: {
          title: '美容洗澡',
          icon: 'mdi:scissors-cutting',
          hideMenu: false,
        },
      },
      {
        path: 'vaccine',
        name: 'PethisVaccine',
        component: () => import('#/views/pethis/vaccine/index.vue'),
        meta: {
          title: '疫苗驱虫',
          icon: 'mdi:needle',
          hideMenu: false,
        },
      },
      {
        path: 'foster',
        name: 'PethisFoster',
        component: () => import('#/views/pethis/foster/index.vue'),
        meta: {
          title: '寄养服务',
          icon: 'mdi:home',
          hideMenu: false,
        },
      },
      {
        path: 'laboratory',
        name: 'PethisLaboratory',
        component: () => import('#/views/pethis/laboratory/index.vue'),
        meta: {
          title: '化验检查',
          icon: 'mdi:test-tube',
          hideMenu: false,
        },
      },
      {
        path: 'imaging',
        name: 'PethisImaging',
        component: () => import('#/views/pethis/imaging/index.vue'),
        meta: {
          title: '影像检查',
          icon: 'mdi:radiology-box',
          hideMenu: false,
        },
      },
      {
        path: 'sales',
        name: 'PethisSales',
        component: () => import('#/views/pethis/sales/index.vue'),
        meta: {
          title: '商品销售',
          icon: 'mdi:shopping',
          hideMenu: false,
        },
      },
      {
        path: 'settlement',
        name: 'PethisSettlement',
        component: () => import('#/views/pethis/settlement/index.vue'),
        meta: {
          title: '结算收银',
          icon: 'mdi:cash-register',
          hideMenu: false,
        },
      },
      {
        path: 'settings',
        name: 'PethisSettings',
        meta: {
          title: '基础设置',
          icon: 'mdi:cog',
          hideMenu: false,
        },
        children: [
          {
            path: 'hospital-info',
            name: 'PethisHospitalInfo',
            component: () =>
              import('#/views/pethis/settings/hospital-info/index.vue'),
            meta: {
              title: '医院信息',
              icon: 'mdi:hospital-building',
              hideMenu: false,
            },
          },
          {
            path: 'products',
            name: 'PethisProducts',
            component: () =>
              import('#/views/pethis/settings/products/index.vue'),
            meta: {
              title: '全部商品',
              icon: 'mdi:package-variant',
              hideMenu: false,
            },
          },
          {
            path: 'combinations',
            name: 'PethisCombinations',
            component: () =>
              import('#/views/pethis/settings/combinations/index.vue'),
            meta: {
              title: '自由组合',
              icon: 'mdi:puzzle',
              hideMenu: false,
            },
          },

          {
            path: 'membership-cards',
            name: 'PethisMembershipCards',
            component: () =>
              import('#/views/pethis/settings/membership-cards/index.vue'),
            meta: {
              title: '会员卡',
              icon: 'mdi:card-account-details',
              hideMenu: false,
            },
          },
          {
            path: 'membership-card-discounts',
            name: 'PethisMembershipCardDiscounts',
            component: () =>
              import('#/views/pethis/settings/membership-card-discounts/index.vue'),
            meta: {
              title: '会员卡折扣',
              icon: 'mdi:percent',
              hideMenu: false,
            },
          },
          {
            path: 'inspection-items',
            name: 'PethisInspectionItems',
            component: () =>
              import('#/views/pethis/settings/inspection-items/index.vue'),
            meta: {
              title: '检验指标库',
              icon: 'mdi:test-tube',
              hideMenu: false,
            },
          },
        ],
      },
    ],
  },
];

export default routes;
